home *** CD-ROM | disk | FTP | other *** search
- VBDOS does not provide a way to display a formatted input box so I had
- to make one the hard way. This example is for a phone number but it
- can be changed for any type of input. You get the input through a textbox
- then redirect the input to a picturebox so you can control the cursor location
- and the format. There are certain limitations which this method has.
- For one I cannot figure out how to make a blinking cursor so I just used
- a pusedo cursor. Since it is not a real cursor it cannot blink so I made
- it large. When you used the arrow keys to place the cursor over a
- character already entered the character turns white instead of a cursor
- under the character. VBDOS does allow you to change the color of each
- character but not the background color of a single character so you cannot
- inverse the character, which would be better. All the editing keys work,
- such as END, HOME, DELETE and BACKSPACE. This current example only works
- in insert mode. It will not work properly if in overstrike.
-
- Be sure to set the TOP value of the textbox that you are using to 25
- so that it is not visible. Such as: Text1.TOP = 25.
-
- All this just for a formatted input! The first major update of VBDOS will
- probably have a formatted input box!
-
- Fell free to use this code as you wish.
-
- Freeware from KAMware.
-
-